package com.shujia.java.day2;

import java.util.Scanner;

public class Demo17Continue {
    public static void main(String[] args) {

        /**
         * 统计学生总分 只统计分数大于80的科目
         *
         */

        Scanner sc = new Scanner(System.in);


        int sum = 0;

        for (int i = 1; i <= 5; i++) {
            System.out.println("请输入第" + i + "门科目的分数");
            int score = sc.nextInt();

            if (score <= 80) {
                //跳出本次循环，进入下一次循环
                continue;
            }


            sum = sum + score;
        }

        System.out.println("总分：" + sum);


    }
}
